package com.weic.design.decorator;

import org.junit.Test;

public class TestDecorator {

    @Test
    public void testDeCorator(){
        ConcreteComponent concreteComponent = new ConcreteComponent();
        concreteComponent.operation();
        System.out.println("------------------------");
        ConcreteDecorator concreteDecorator = new ConcreteDecorator(concreteComponent);
        concreteDecorator.operation();
    }
}
